import request from "@/utils/request";

// 查询订单-窗帘定制列表
export function listOrderCustomCurtain(query) {
  return request({
    url: "/md/orderCustomCurtain/list",
    method: "get",
    params: query,
  });
}

// 查询订单-窗帘定制详细
export function getOrderCustomCurtain(proOrderCustomCurtainId) {
  return request({
    url: "/md/orderCustomCurtain/" + proOrderCustomCurtainId,
    method: "get",
  });
}

// 新增订单-窗帘定制
export function addOrderCustomCurtain(data) {
  return request({
    url: "/md/orderCustomCurtain",
    method: "post",
    data: data,
  });
}

// 修改订单-窗帘定制
export function updateOrderCustomCurtain(data) {
  return request({
    url: "/md/orderCustomCurtain",
    method: "put",
    data: data,
  });
}

// 删除订单-窗帘定制
export function delOrderCustomCurtain(proOrderCustomCurtainId) {
  return request({
    url: "/md/orderCustomCurtain/" + proOrderCustomCurtainId,
    method: "delete",
  });
}

// 批量-保存订单-窗帘定制
export function batchEditOrderCustomCurtain(data) {
  return request({
    url: "/md/orderCustomCurtain/batchEdit",
    method: "post",
    data: data,
  });
}

// 价格明细
export function getPriceDetail(query) {
  return request({
    url: "/md/orderCustomCurtain/priceDetail",
    method: "get",
    params: query,
  });
}

// 查询订单-商品-价格明细 列表
export function getDetailList(query) {
  return request({
    url: "/pro/detail/list",
    method: "get",
    params: query,
  });
}

// 修改订单-商品- 价格明细
export function updateDetail(data) {
  return request({
    url: "/pro/detail",
    method: "put",
    data: data,
  });
}
